<h2 class="title">配件出库</h2>

<table class="tb_term" width="100%">
<tr>
	<td class="tr_td_width01 alignright">库请单号</td>
	<td class="tr_td_width03"><input type=text  class="input_browse_stand txt-normal" name="storehouse_no" size=25 value='{%$storehouse_no%}' readonly></td>
	<td class="tr_td_width01 alignright">发往单位</td>
	<td><input type=text class="input_browse_stand txt-normal" name="send_company_name" value='{%$send_company_name%}' readonly></td>
</tr>
<tr>
	<td class="alignright">物资出处</td>
	<td>
		<select name="storehouse_record_from"  class="select_browse02 txt-normal" readonly>
			{%foreach from=$project_arr item=list%}
			<option value="{%$list%}" {%if $storehouse_record_from==$list%}selected{%/if%}>{%$list%}</option>
			{%/foreach%}
		</select>
	</td>
	<td class="alignright">经办日期</td>	
	<td><input type=text name="operation_date" id="operation_date" class="input_date_browse txt-normal" maxlength="12" value='{%$operation_date|date_format:"%Y-%m-%d"%}' readonly></td>
</tr>
<tr>
	<td class="tr_td_width02 alignright">经办人</td>
	<td colspan="3">
		<select name="operation_people" class="select_browse txt-normal" readonly>
			{%html_options options=$admin_info selected=$operation_people %}
		</select>
	</td>
</tr>
<tr>
	<td class="alignright">备注</td>	
	<td colspan="3"><textarea cols="70"  rows="3" class="textarea_browse txt-normal" id="info" name="info" readonly>{%$info%}</textarea></td>
</tr>
</table>
<p class="btn_right">
	<button type="button" class="b-default" hidefocus="true" onclick="javascript:location.href='index.php?c=zy_send_storehouse_details&m=add&send_record_id={%$send_record_id%}'"><span><em>添加</em></span></button>
	<button type="button" class="b-default" hidefocus="true" onclick="javascript:history.go(-1)"><span><em>返回</em></span></button>
</p>

<h2 class="title">出库明细</h2>
<table class="tb_list" width="100%">
<tr class="title">
	<!--<td width="5%">序号</td>-->
	<td class="list_td_zw_10">物资编码</td>
	<td class="list_td_zw_10">部件号</td>
	<td class="list_td_zw_10">物资名称及描述</td>
	<td class="list_td_zw_02">数量</td>
	<td class="list_td_zw_02">单位</td>
	<td class="list_td_zw_10">订单号</td>
	<td>备注</td>
	<td class="list_td_zw_opt03">操作</td>
</tr>
{%foreach item=list from=$recordArr name="rec"%}
<tr>
	<!--<td>{%math equation="x + 1" x=$smarty.foreach.rec.index%}</td>-->
	<td>{%$list.materials_no%}</td>
	<td>{%$list.part_number%}</td>
	<td class="alignleft" title="{%$list.materials_name%}">{%cut_str str=$list.materials_name sublen=10%}</td>
	<td>{%$list.send_num%}</td>
	<td>{%$list.s_unit%}</td>
	<td>{%$list.order_no%}</td>
	<td class="alignleft" title="{%$list.remarks%}">{%cut_str str=$list.remarks sublen=10%}</td>
	<td>
		<a href='index.php?c=zy_send_storehouse_details&m=edit&is_show=1&details_id={%$list.details_id%}&send_record_id={%$list.send_record_id%}'>查看</a>&nbsp;
		<a href='index.php?c=zy_send_storehouse_details&m=edit&details_id={%$list.details_id%}&send_record_id={%$list.send_record_id%}'>修改</a>&nbsp;
		<a href='index.php?c=zy_send_storehouse_details&m=del&details_id={%$list.details_id%}&send_record_id={%$list.send_record_id%}' onclick="return confirm('您确认删除吗？')">删除</a>
	</td>
</tr>
{%foreachelse%}
<tr><td colspan="8">暂无内容</td></tr>
{%/foreach%}
</table>